package com.jymj.entity.huji;

import com.jymj.entity.YlEntity;
import com.jymj.enumEntity.IndustryEnum;
import com.jymj.enumEntity.RegistraEnum;
import com.jymj.enumEntity.ScopeBusEnum;
import com.jymj.enumEntity.yl.StateBuEnum;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Date;

/**
 * Created by ljj on 2017/4/6.
 */
public class FeiZhaiEntity implements Serializable {

    //主键
    private Integer id;
    //承租单位或个人
    private Integer renorindi;
    private String renorindiText;
    //现状企业名称
    private String qiyeName;
    //合同有效期
    private Date contractvalid;
    //注册情况 0 本地注册 1 异地注册 2 无证无照
    private Integer registration;
    private String registrationText;
    //经营范围 0 木材加工 1 钢材加工 3 玻璃 4 其他
    private Integer scopebusiness;
    private String scopebusinessText;
    private String scopebusinesstext1;
    //经营状态 0 正常经营 1 闲置院落
    private Integer statebusiness;
    private String statebusinessText;
    //前三年平均产值 （万元）
    private BigDecimal average;
    //备注
    private String text;
    //xzqmc
    private String xzqmc;
    //是否删除
    private boolean isdelete;
    //院落id
    private Integer ylId;
    //院落
    private YlEntity ylEntity;
    //本地职工人数
    private Integer localstaff;
    //外来职工人数
    private Integer foreignstaff;
    //合计职工人数
    private Integer totalsatf;
    //合同开始日期
    private Date startTime;
    //合同结束日期
    private Date endTime;
    //操作人
    private String noteTaker;
    //信息提供者
    private String noteInfo;
    //信息来源
    private String infoRes;
    //行业类型
    private Integer industry;
    private String industryText;
    // 是否承包人/企业
    private Integer ismanager;
    //有无土地使用证
    private Integer haveladusprod;
    //用地编号
    private String landCode;
    //yl中心点
    private String center;
    //非宅占地面积
    private BigDecimal fzzdmj;
    //非宅建筑面积
    private BigDecimal fzjzmj;

    public String getXzqmc() {
        return xzqmc;
    }

    public void setXzqmc(String xzqmc) {
        this.xzqmc = xzqmc;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRenorindi() {
        return renorindi;
    }

    public void setRenorindi(Integer renorindi) {
        this.renorindi = renorindi;
    }

    public String getQiyeName() {
        return qiyeName;
    }

    public void setQiyeName(String qiyeName) {
        this.qiyeName = qiyeName;
    }

    public Date getContractvalid() {
        return contractvalid;
    }

    public void setContractvalid(Date contractvalid) {
        this.contractvalid = contractvalid;
    }

    public Integer getRegistration() {
        return registration;
    }

    public void setRegistration(Integer registration) {
        this.registration = registration;
    }

    public Integer getScopebusiness() {
        return scopebusiness;
    }

    public void setScopebusiness(Integer scopebusiness) {
        this.scopebusiness = scopebusiness;
    }

    public Integer getStatebusiness() {
        return statebusiness;
    }

    public void setStatebusiness(Integer statebusiness) {
        this.statebusiness = statebusiness;
    }

    public BigDecimal getAverage() {
        return average;
    }

    public void setAverage(BigDecimal average) {
        this.average = average;
    }

    public YlEntity getYlEntity() {
        return ylEntity;
    }

    public void setYlEntity(YlEntity ylEntity) {
        this.ylEntity = ylEntity;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getYlId() {
        return ylId;
    }

    public void setYlId(Integer ylId) {
        this.ylId = ylId;
    }

    public boolean isdelete() {
        return isdelete;
    }

    public void setIsdelete(boolean isdelete) {
        this.isdelete = isdelete;
    }

    public Integer getForeignstaff() {
        return foreignstaff;
    }

    public void setForeignstaff(Integer foreignstaff) {
        this.foreignstaff = foreignstaff;
    }

    public Integer getTotalsatf() {
        return totalsatf;
    }

    public void setTotalsatf(Integer totalsatf) {
        this.totalsatf = totalsatf;
    }

    public Integer getLocalstaff() {
        return localstaff;
    }

    public void setLocalstaff(Integer localstaff) {
        this.localstaff = localstaff;
    }

    public String getRenorindiText() {
        return renorindiText;
    }

    public void setRenorindiText(String renorindiText) {
        this.renorindiText = renorindiText;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public String getNoteTaker() {
        return noteTaker;
    }

    public void setNoteTaker(String noteTaker) {
        this.noteTaker = noteTaker;
    }

    public String getNoteInfo() {
        return noteInfo;
    }

    public void setNoteInfo(String noteInfo) {
        this.noteInfo = noteInfo;
    }

    public String getInfoRes() {
        return infoRes;
    }

    public void setInfoRes(String infoRes) {
        this.infoRes = infoRes;
    }

    public Integer getIndustry() {
        return industry;
    }

    public void setIndustry(Integer industry) {
        this.industry = industry;
    }

    public Integer getIsmanager() {
        return ismanager;
    }

    public void setIsmanager(Integer ismanager) {
        this.ismanager = ismanager;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getScopebusinesstext1() {
        return scopebusinesstext1;
    }

    public String getLandCode() {
        return landCode;
    }

    public void setLandCode(String landCode) {
        this.landCode = landCode;
    }

    public String getCenter() {
        return center;
    }

    public void setCenter(String center) {
        this.center = center;
    }

    public void setScopebusinesstext1(String scopebusinesstext1) {
        this.scopebusinesstext1 = scopebusinesstext1;
    }

    /* public String getRenorindiText() {
        if (getRenorindi()==null)
            return null;
        return RenorindiEnum.getName(getRenorindi());
    }*/

    public Integer getHaveladusprod() {
        return haveladusprod;
    }

    public void setHaveladusprod(Integer haveladusprod) {
        this.haveladusprod = haveladusprod;
    }

    public BigDecimal getFzzdmj() {
        return fzzdmj;
    }

    public void setFzzdmj(BigDecimal fzzdmj) {
        this.fzzdmj = fzzdmj;
    }

    public BigDecimal getFzjzmj() {
        return fzjzmj == null ? null : fzjzmj.setScale(2, RoundingMode.HALF_UP);
    }

    public void setFzjzmj(BigDecimal fzjzmj) {
        this.fzjzmj = fzjzmj;
    }

    public String getRegistrationText() {
        if (getRegistration() == null) {
            return null;
        }
        return RegistraEnum.getName(getRegistration());
    }

    public String getScopebusinessText() {
        if (getScopebusiness() == null) {
            return null;
        }
        return ScopeBusEnum.getName(getScopebusiness());
    }

    public String getStatebusinessText() {
        if (getStatebusiness() == null) {
            return null;
        }
        return StateBuEnum.getName(getStatebusiness());
    }

    public String getIndustryText() {
        if (getIndustry() == null) {
            return null;
        }
        return IndustryEnum.getName(getIndustry());
    }
}
